package com.qg.wcsopcuaqj.enums.rgv1;

import com.qg.wcsopcuaqj.enums.CodeEnum;

/**
 * @Author: 蔡翔
 * @Date: 2019/10/14 10:06
 * @Version 1.0
 */
public enum RGV1Wcs2PlcVarEnum implements CodeEnum {
    /**
     *堆垛机
     **/
    //NodeID	ns=6;s=S7-1200 station_2.Boutique.DB501_WCSToPLC.CommunicationStatus.Hear

    Heart("Heart",6,"S7-1200 station_2.Boutique.DB501_WCSToPLC.CommunicationStatus.Heart","QBoolean",""),
    RGV1("RGV1",6,"S7-1200 station_2.Boutique.DB500_PLCToWCS.CommunicationStatus.RGV1","QBoolean",""),
    RGV2("RGV2",6,"S7-1200 station_2.Boutique.DB500_PLCToWCS.CommunicationStatus.RGV2","QBoolean",""),

    //NodeID	ns=6;s=S7-1200 station_2.Boutique.DB500_PLCToWCS.CommunicationStatus.Ipsen
    Ipsen("Ipsen",6,"S7-1200 station_2.Boutique.DB500_PLCToWCS.CommunicationStatus.Ipsen","QBoolean",""),


    ClearAlarm("ClearAlarm",6,"S7-1200 station_2.Boutique.DB501_WCSToPLC.WCSToRGV1.ClearAlarm","QBoolean","手工解除报警指令"),
    CancelTask("CancelTask",6,"S7-1200 station_2.Boutique.DB501_WCSToPLC.WCSToRGV1.CancelTask","QBoolean","堆垛机取消当前任务命令"),
    Estop("Estop",6,"S7-1200 station_2.Boutique.DB501_WCSToPLC.WCSToRGV1.Estop","QBoolean","急停信号"),
    PickRow("PickRow",6,"S7-1200 station_2.Boutique.DB501_WCSToPLC.WCSToRGV1.PickRow","QShort","取货排"),
    PickBay("PickBay",6,"S7-1200 station_2.Boutique.DB501_WCSToPLC.WCSToRGV1.PickBay","QShort","取货列"),
    SendRow("SendRow",6,"S7-1200 station_2.Boutique.DB501_WCSToPLC.WCSToRGV1.SendRow","QShort","放货排"),
    SendBay("SendBay",6,"S7-1200 station_2.Boutique.DB501_WCSToPLC.WCSToRGV1.SendBay","QShort","放货列"),

    IdeNumber("IdeNumber",6,"S7-1200 station_2.Boutique.DB501_WCSToPLC.WCSToRGV1.IdeNumber","QShort","识别号"),
    ProcessNumber("ProcessNumber",6,"S7-1200 station_2.Boutique.DB501_WCSToPLC.WCSToRGV1.ProcessNumber","QShort","工艺号"),

    TaskNo("TaskNo",6,"S7-1200 station_2.Boutique.DB501_WCSToPLC.WCSToRGV1.TaskNo","QInteger","任务号"),
    TaskType("TaskType",6,"S7-1200 station_2.Boutique.DB501_WCSToPLC.WCSToRGV1.TaskType","QShort","1搬运2移动"),
    STB("STB",6,"S7-1200 station_2.Boutique.DB501_WCSToPLC.WCSToRGV1.STB","QShort",""),
    ACK("ACK",6,"S7-1200 station_2.Boutique.DB501_WCSToPLC.WCSToRGV1.ACK","QShort",""),


    /**
     *称重plc
     **/
    ;
    private Integer namespace;
    private String identity;
    private String type;
    private String desc;
    private String name;
    RGV1Wcs2PlcVarEnum(String name, Integer namespace, String identity, String type, String desc){
        this.name = name;
        this.namespace = namespace;
        this.identity = identity;
        this.type = type;
        this.desc = desc;
    }

    @Override
    public void set(String name, Integer nameSpace, String identity) {
        this.name = name;
        this.namespace = nameSpace;
        this.identity = identity;
    }
    @Override
    public Integer getNamespace() {
        return namespace;
    }

    @Override
    public String getIdentity() {
        return identity;
    }

    @Override
    public String getType() {
        return type;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public String getDesc() {
        return desc;
    }
}
